/*    */ package com.qmsk.business.wxdownload.bean;
/*    */ 
/*    */ import org.apache.commons.lang.StringUtils;
/*    */ 
/*    */ public class MsgType
/*    */ {
/*    */   public static final int REQ_MESSAGE_TYPE_TEXT = 1;
/*    */   public static final int REQ_MESSAGE_TYPE_IMAGE = 2;
/*    */   public static final int REQ_MESSAGE_TYPE_LINK = 3;
/*    */   public static final int REQ_MESSAGE_TYPE_LOCATION = 4;
/*    */   public static final int REQ_MESSAGE_TYPE_VOICE = 5;
/*    */ 
/*    */   public static Integer getTypeId(String typeStr)
/*    */   {
/* 33 */     Integer type = null;
/* 34 */     if (StringUtils.isNotEmpty(typeStr)) {
/* 35 */       if (StringUtils.equals(typeStr, "text"))
/* 36 */         type = Integer.valueOf(1);
/* 37 */       else if (StringUtils.equals(typeStr, "image"))
/* 38 */         type = Integer.valueOf(2);
/* 39 */       else if (StringUtils.equals(typeStr, "link"))
/* 40 */         type = Integer.valueOf(3);
/* 41 */       else if (StringUtils.equals(typeStr, "location"))
/* 42 */         type = Integer.valueOf(4);
/* 43 */       else if (StringUtils.equals(typeStr, "voice")) {
/* 44 */         type = Integer.valueOf(5);
/*    */       }
/*    */     }
/* 47 */     return type;
/*    */   }
/*    */ }

/* Location:           C:\Users\Administrator\Desktop\新建文件夹\WEB-INF\classes\
 * Qualified Name:     com.qmsk.business.wxdownload.bean.MsgType
 * JD-Core Version:    0.5.3
 */